package com.smsc.headend.task.engine.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smsc.headend.module.fwu.entity.LogFwUpgradeHis;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * (接口定义)
 *
 * @author wjh
 * @date 2022/7/15 17:38.
 */
public interface LogFwUpgradeHisMapper extends BaseMapper<LogFwUpgradeHis> {
    @Select("select * from LOG_FW_UPGRADE_HIS where  TEMPLATE_ID=#{templateId} and DEVICE_ID=#{deviceId} and DEVICE_TYPE=#{deviceType} and TASK_TYPE=#{taskType}")
    List<LogFwUpgradeHis> getByTemplateIdAndDeviceIdAndDeviceType(@Param("templateId") Long templateId, @Param("deviceId")Long deviceId, @Param("deviceType")Integer deviceType, @Param("taskType")Integer taskType);

}
